home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / gdata / Crypto / test.pyc (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1010 b   |  35 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __revision__ = '$Id: test.py,v 1.7 2002/07/11 14:31:19 akuchling Exp $'
  5. import os
  6. import sys
  7. from distutils.util import get_platform
  8. s = 'build/lib.%s-%.3s' % (get_platform(), sys.version)
  9. s = os.path.join(os.getcwd(), s)
  10. sys.path.insert(0, s)
  11. s = os.path.join(os.getcwd(), 'test')
  12. sys.path.insert(0, s)
  13. from Crypto.Util import test
  14. args = sys.argv[1:]
  15. quiet = '--quiet' in args
  16. if quiet:
  17.     args.remove('--quiet')
  18.  
  19. if not quiet:
  20.     print '\nStream Ciphers:'
  21.     print '==============='
  22.  
  23. if args:
  24.     test.TestStreamModules(args, verbose = not quiet)
  25. else:
  26.     test.TestStreamModules(verbose = not quiet)
  27. if not quiet:
  28.     print '\nBlock Ciphers:'
  29.     print '=============='
  30.  
  31. if args:
  32.     test.TestBlockModules(args, verbose = not quiet)
  33. else:
  34.     test.TestBlockModules(verbose = not quiet)
  35.